/**
 * 
 * @author Travis Lynch
 * @version Jan 17 2012
 * 
 *  <b>Description</b>
 * A driver class that sets the ivestment, rate, and period of each individual investments and prints out in table format the return based on the period of the investment
 *
 *
 */
public class HW1 {

	public static void main(String[] args) {
		Investment[] yahoo = new Investment[11];
		printYears();
		for(int i=1000; i<=10000;i=i+1000){
			yahoo[i/1000] = new Investment(i,10,0.05);
			System.out.println(yahoo[i/1000]);
		}
	}
	
	public static void printYears(){
		String year=""; /** Year hearder string varable */
		int i=0,j;
		while(i<=10){
			j=0;
			while(j<=6){
				year = year + " ";
				j++;
			}
			year = year + i;
			i++;
		}
		System.out.println("year: \n" + year);
	}
}
